package com.easy.activiti.ext;

import java.util.List;

/**
 * @author zhouchuang
 * 2024-10-31 21:35:53
 */
public interface IActivitiCoreService {
    AuthConfigServer authConfigServer();

    public interface AuthConfigServer{
        public enum ActivitiRoleType{
            ROLE_ACTIVITI_ADMIN,ROLE_ACTIVITI_USER,
        }
        List<User> users(User user);

        User username(String username);

        User loginUser();

        List<Org> orgs(Org org);

        public class User{

            public User(String userName, String nickName,List<String> roles) {
                this.userName = userName;
                this.nickName = nickName;
                this.roles = roles;
            }

            private String userName;
            private String nickName;
            private List<String> roles;

            public List<String> getRoles() {
                return roles;
            }

            public void setRoles(List<String> roles) {
                this.roles = roles;
            }

            public String getUserName() {
                return userName;
            }

            public void setUserName(String userName) {
                this.userName = userName;
            }

            public String getNickName() {
                return nickName;
            }

            public void setNickName(String nickName) {
                this.nickName = nickName;
            }
        }

        public class Org{
            private String orgName;
            private String orgCode;

            public String getOrgName() {
                return orgName;
            }

            public void setOrgName(String orgName) {
                this.orgName = orgName;
            }

            public String getOrgCode() {
                return orgCode;
            }

            public void setOrgCode(String orgCode) {
                this.orgCode = orgCode;
            }
        }
    }
}
